<?php
//管理员页面删除记录
if (isset($_GET['act'])&&$_GET['act']=='del'){
    if(isset($_GET['id'])) {
        if('<script>confirm("你确定要删除吗？")</script>'){
            $delid=$_GET['id'];
            include_once "model/Mydatabase.class.php";
            $obj=new mydb();
            $mysql = "DELETE usersinfo,usersreg from usersinfo LEFT JOIN usersreg ON usersinfo.uid=usersreg.id WHERE usersinfo.uid=$delid";
            $obj->dodelete($mysql);
        }
    }
}
?>